mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
9.3 KiB
JSON
1 line
9.3 KiB
JSON
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport ListContext from './ListContext';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n listStyle: 'none',\n margin: 0,\n padding: 0,\n position: 'relative'\n },\n\n /* Styles applied to the root element if `disablePadding={false}`. */\n padding: {\n paddingTop: 8,\n paddingBottom: 8\n },\n\n /* Styles applied to the root element if dense. */\n dense: {},\n\n /* Styles applied to the root element if a `subheader` is provided. */\n subheader: {\n paddingTop: 0\n }\n};\nvar List = /*#__PURE__*/React.forwardRef(function List(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'ul' : _props$component,\n _props$dense = props.dense,\n dense = _props$dense === void 0 ? false : _props$dense,\n _props$disablePadding = props.disablePadding,\n disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding,\n subheader = props.subheader,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"component\", \"dense\", \"disablePadding\", \"subheader\"]);\n\n var context = React.useMemo(function () {\n return {\n dense: dense\n };\n }, [dense]);\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, dense && classes.dense, !disablePadding && classes.padding, subheader && classes.subheader),\n ref: ref\n }, other), subheader, children));\n});\nprocess.env.NODE_ENV !== \"production\" ? List.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used for\n * the list and list items.\n * The prop is available to descendant components as the `dense` context.\n */\n dense: PropTypes.bool,\n\n /**\n * If `true`, vertical padding will be removed from the list.\n */\n disablePadding: PropTypes.bool,\n\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader: PropTypes.node\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiList'\n})(List);","map":{"version":3,"sources":["/app/node_modules/@material-ui/core/esm/List/List.js"],"names":["_extends","_objectWithoutProperties","React","PropTypes","clsx","withStyles","ListContext","styles","root","listStyle","margin","padding","position","paddingTop","paddingBottom","dense","subheader","List","forwardRef","props","ref","children","classes","className","_props$component","component","Component","_props$dense","_props$disablePadding","disablePadding","other","context","useMemo","createElement","Provider","value","process","env","NODE_ENV","propTypes","node","object","isRequired","string","elementType","bool","name"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,oCAArB;AACA,OAAOC,wBAAP,MAAqC,oDAArC;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,OAAOC,UAAP,MAAuB,sBAAvB;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAO,IAAIC,MAAM,GAAG;AAClB;AACAC,EAAAA,IAAI,EAAE;AACJC,IAAAA,SAAS,EAAE,MADP;AAEJC,IAAAA,MAAM,EAAE,CAFJ;AAGJC,IAAAA,OAAO,EAAE,CAHL;AAIJC,IAAAA,QAAQ,EAAE;AAJN,GAFY;;AASlB;AACAD,EAAAA,OAAO,EAAE;AACPE,IAAAA,UAAU,EAAE,CADL;AAEPC,IAAAA,aAAa,EAAE;AAFR,GAVS;;AAelB;AACAC,EAAAA,KAAK,EAAE,EAhBW;;AAkBlB;AACAC,EAAAA,SAAS,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AQ,CAAC;AACtDuB,IAAAA,SAAS,EAAEnB,IAAI,CAACkB,OAAO,CAACd,IAAT,EAAee,SAAf,EAA0BR,KAAK,IAAIO,OAAO,CAACP,KAA3C,EAAkD,CAACc,cAAD,IAAmBP,OAAO,CAACX,OAA7E,EAAsFK,SAAS,IAAIM,OAAO,CAACN,SAA3G,CADuC;AAEtDI,IAAAA,GAAG,EAAEA;AAFiD,GAAD,EAGpDU,KAHoD,CAAvC,EAGLd,SAHK,EAGMK,QAHN,CAFI,CAApB;AAMD,CAxBuB,CAAxB;AAyBAe,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GAAwCrB,IAAI,CAACsB,SAAL,GAAiB;AACvD;AACF;AACA;AACElB,EAAAA,QAAQ,EAAElB,SAAS,CAACqC,IAJmC;;AAMvD;AACF;AACA;AACA;AACElB,EAAAA,OAAO,EAAEnB,SAAS,CAACsC,MAAV,CAAiBC,UAV6B;;AAYvD;AACF;AACA;AACEnB,EAAAA,SAAS,EAAEpB,SAAS,CAACwC,MAfkC;;AAiBvD;AACF;AACA;AACA;AACElB,EAAAA,SAAS,EAAEtB;AACX;AADoB,GAEnByC,WAvBsD;;AAyBvD;AACF;AACA;AACA;AACA;AACE7B,EAAAA,KAAK,EAAEZ,SAAS,CAAC0C,IA9BsC;;AAgCvD;AACF;AACA;AACEhB,EAAAA,cAAc,EAAE1B,SAAS,CAAC0C,IAnC6B;;AAqCvD;AACF;AACA;AACE7B,EAAAA,SAAS,EAAEb,SAAS,CAACqC;AAxCkC,CAAzD,GAyCI,KAAK,CAzCT;AA0CA,eAAenC,UAAU,CAACE,MAAD,EAAS;AAChCuC,EAAAA,IAAI,EAAE;AAD0B,CAAT,CAAV,CAEZ7B,IAFY,CAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport ListContext from './ListContext';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n listStyle: 'none',\n margin: 0,\n padding: 0,\n position: 'relative'\n },\n\n /* Styles applied to the root element if `disablePadding={false}`. */\n padding: {\n paddingTop: 8,\n paddingBottom: 8\n },\n\n /* Styles applied to the root element if dense. */\n dense: {},\n\n /* Styles applied to the root element if a `subheader` is provided. */\n subheader: {\n paddingTop: 0\n }\n};\nvar List = /*#__PURE__*/React.forwardRef(function List(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'ul' : _props$component,\n _props$dense = props.dense,\n dense = _props$dense === void 0 ? false : _props$dense,\n _props$disablePadding = props.disablePadding,\n disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding,\n subheader = props.subheader,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"component\", \"dense\", \"disablePadding\", \"subheader\"]);\n\n var context = React.useMemo(function () {\n return {\n dense: dense\n };\n }, [dense]);\n return /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, dense && classes.dense, !disablePadding && classes.padding, subheader && classes.subheader),\n ref: ref\n }, other), subheader, children));\n});\nprocess.env.NODE_ENV !== \"production\" ? List.propTypes = {\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used for\n * the list and list items.\n * The prop is available to descendant components as the `dense` context.\n */\n dense: PropTypes.bool,\n\n /**\n * If `true`, vertical padding will be removed from the list.\n */\n disablePadding: PropTypes.bool,\n\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader: PropTypes.node\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiList'\n})(List);"]},"metadata":{},"sourceType":"module"} |