mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
7.5 KiB
JSON
1 line
7.5 KiB
JSON
|
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n className: PropTypes.string,\n cssModule: PropTypes.object,\n size: PropTypes.string,\n bordered: PropTypes.bool,\n borderless: PropTypes.bool,\n striped: PropTypes.bool,\n dark: PropTypes.bool,\n hover: PropTypes.bool,\n responsive: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n tag: tagPropType,\n responsiveTag: tagPropType,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.object])\n};\nvar defaultProps = {\n tag: 'table',\n responsiveTag: 'div'\n};\n\nvar Table = function Table(props) {\n var className = props.className,\n cssModule = props.cssModule,\n size = props.size,\n bordered = props.bordered,\n borderless = props.borderless,\n striped = props.striped,\n dark = props.dark,\n hover = props.hover,\n responsive = props.responsive,\n Tag = props.tag,\n ResponsiveTag = props.responsiveTag,\n innerRef = props.innerRef,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"size\", \"bordered\", \"borderless\", \"striped\", \"dark\", \"hover\", \"responsive\", \"tag\", \"responsiveTag\", \"innerRef\"]);\n\n var classes = mapToCssModules(classNames(className, 'table', size ? 'table-' + size : false, bordered ? 'table-bordered' : false, borderless ? 'table-borderless' : false, striped ? 'table-striped' : false, dark ? 'table-dark' : false, hover ? 'table-hover' : false), cssModule);\n var table = /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n ref: innerRef,\n className: classes\n }));\n\n if (responsive) {\n var responsiveClassName = mapToCssModules(responsive === true ? 'table-responsive' : \"table-responsive-\" + responsive, cssModule);\n return /*#__PURE__*/React.createElement(ResponsiveTag, {\n className: responsiveClassName\n }, table);\n }\n\n return table;\n};\n\nTable.propTypes = propTypes;\nTable.defaultProps = defaultProps;\nexport default Table;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/Table.js"],"names":["_extends","_objectWithoutPropertiesLoose","React","PropTypes","classNames","mapToCssModules","tagPropType","propTypes","className","string","cssModule","object","size","bordered","bool","borderless","striped","dark","hover","responsive","oneOfType","tag","responsiveTag","innerRef","func","defaultProps","Table","props","Tag","ResponsiveTag","attributes","classes","table","createElement","ref","responsiveClassName"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,6BAAP,MAA0C,yDAA1C;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAASC,eAAT,EAA0BC,WAA1B,QAA6C,SAA7C;AACA,IAAIC,SAAS,GAAG;AACdC,EAAAA,SAAS,EAAEL,SAAS,CAACM,MADP;AAEdC,EAAAA,SAAS,EAAEP,SAAS,CAACQ,MAFP;AAGdC,EAAAA,IAAI,EAAET,SAAS,CAACM,MAHF;AAIdI,EAAAA,QAAQ,EAAEV,SAAS,CAACW,IAJN;AAKdC,EAAAA,UAAU,EAAEZ,SAAS,CAACW,IALR;AAMdE,EAAAA,OAAO,EAAEb,SAAS,CAACW,IANL;AAOdG,EAAAA,IAAI,EAAEd,SAAS,CAACW,IAPF;AAQdI,EAAAA,KAAK,EAAEf,SAAS,CAACW,IARH;AASdK,EAAAA,UAAU,EAAEhB,SAAS,CAACiB,SAAV,CAAoB,CAACjB,SAAS,CAACW,IAAX,EAAiBX,SAAS,CAACM,MAA3B,CAApB,CATE;AAUdY,EAAAA,GAAG,EAAEf,WAVS;AAWdgB,EAAAA,aAAa,EAAEhB,WAXD;AAYdiB,EAAAA,QAAQ,EAAEpB,SAAS,CAACiB,SAAV,CAAoB,CAACjB,SAAS,CAACqB,IAAX,EAAiBrB,SAA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