1 line
7.1 KiB
JSON
1 line
7.1 KiB
JSON
|
{"ast":null,"code":"\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n var {\n prefixCls: customizePrefixCls,\n className,\n color = 'blue',\n dot,\n pending = false,\n position /** Dead, but do not pass in <li {...omit()} */,\n label,\n children\n } = _a,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n const itemClassName = classNames(`${prefixCls}-item`, {\n [`${prefixCls}-item-pending`]: pending\n }, className);\n const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n const dotClassName = classNames(`${prefixCls}-item-head`, {\n [`${prefixCls}-item-head-custom`]: !!dot,\n [`${prefixCls}-item-head-${color}`]: !customColor\n });\n return /*#__PURE__*/React.createElement(\"li\", Object.assign({}, restProps, {\n className: itemClassName\n }), label && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-label`\n }, label), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-tail`\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: dotClassName,\n style: {\n borderColor: customColor,\n color: customColor\n }\n }, dot), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-content`\n }, children));\n};\nexport default TimelineItem;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","ConfigContext","TimelineItem","_a","prefixCls","customizePrefixCls","className","color","dot","pending","position","label","children","restProps","getPrefixCls","useContext","itemClassName","customColor","test","undefined","dotClassName","createElement","assign","style","borderColor"],"sources":["C:/Users/Аришина)/source/repos/PromoCursed/node_modules/antd/es/timeline/TimelineItem.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\nconst TimelineItem = _a => {\n var {\n prefixCls: customizePrefixCls,\n className,\n color = 'blue',\n dot,\n pending = false,\n position /** Dead, but do not pass in <li {...omit()} */,\n label,\n children\n } = _a,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('timeline', customizePrefixCls);\n const itemClassName = classNames(`${prefixCls}-item`, {\n [`${prefixCls}-item-pending`]: pending\n }, className);\n const customColor = /blue|red|green|gray/.test(color || '') ? undefined : color;\n const dotClassName = c
|