mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
5.5 KiB
JSON
1 line
5.5 KiB
JSON
{"ast":null,"code":"import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules } from './utils';\n\nvar CarouselControl = function CarouselControl(props) {\n var direction = props.direction,\n onClickHandler = props.onClickHandler,\n cssModule = props.cssModule,\n directionText = props.directionText,\n className = props.className;\n var anchorClasses = mapToCssModules(classNames(className, \"carousel-control-\" + direction), cssModule);\n var iconClasses = mapToCssModules(classNames(\"carousel-control-\" + direction + \"-icon\"), cssModule);\n var screenReaderClasses = mapToCssModules(classNames('sr-only'), cssModule);\n return (\n /*#__PURE__*/\n // We need to disable this linting rule to use an `<a>` instead of\n // `<button>` because that's what the Bootstrap examples require:\n // https://getbootstrap.com/docs/4.5/components/carousel/#with-controls\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n React.createElement(\"a\", {\n className: anchorClasses,\n style: {\n cursor: \"pointer\"\n },\n role: \"button\",\n tabIndex: \"0\",\n onClick: function onClick(e) {\n e.preventDefault();\n onClickHandler();\n }\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClasses,\n \"aria-hidden\": \"true\"\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: screenReaderClasses\n }, directionText || direction))\n );\n};\n\nCarouselControl.propTypes = {\n direction: PropTypes.oneOf(['prev', 'next']).isRequired,\n onClickHandler: PropTypes.func.isRequired,\n cssModule: PropTypes.object,\n directionText: PropTypes.string,\n className: PropTypes.string\n};\nexport default CarouselControl;","map":{"version":3,"sources":["/app/node_modules/reactstrap/es/CarouselControl.js"],"names":["React","PropTypes","classNames","mapToCssModules","CarouselControl","props","direction","onClickHandler","cssModule","directionText","className","anchorClasses","iconClasses","screenReaderClasses","createElement","style","cursor","role","tabIndex","onClick","e","preventDefault","propTypes","oneOf","isRequired","func","object","string"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,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,MAApB,EAA4B;AAC3CJ,MAAAA,SAAS,EAAEG;AADgC,KAA5B,EAEdJ,aAAa,IAAIH,SAFH,CAdjB;AANF;AAwBD,CAjCD;;AAmCAF,eAAe,CAACkB,SAAhB,GAA4B;AAC1BhB,EAAAA,SAAS,EAAEL,SAAS,CAACsB,KAAV,CAAgB,CAAC,MAAD,EAAS,MAAT,CAAhB,EAAkCC,UADnB;AAE1BjB,EAAAA,cAAc,EAAEN,SAAS,CAACwB,IAAV,CAAeD,UAFL;AAG1BhB,EAAAA,SAAS,EAAEP,SAAS,CAACyB,MAHK;AAI1BjB,EAAAA,aAAa,EAAER,SAAS,CAAC0B,MAJC;AAK1BjB,EAAAA,SAAS,EAAET,SAAS,CAAC0B;AALK,CAA5B;AAOA,eAAevB,eAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules } from './utils';\n\nvar CarouselControl = function CarouselControl(props) {\n var direction = props.direction,\n onClickHandler = props.onClickHandler,\n cssModule = props.cssModule,\n directionText = props.directionText,\n className = props.className;\n var anchorClasses = mapToCssModules(classNames(className, \"carousel-control-\" + direction), cssModule);\n var iconClasses = mapToCssModules(classNames(\"carousel-control-\" + direction + \"-icon\"), cssModule);\n var screenReaderClasses = mapToCssModules(classNames('sr-only'), cssModule);\n return (\n /*#__PURE__*/\n // We need to disable this linting rule to use an `<a>` instead of\n // `<button>` because that's what the Bootstrap examples require:\n // https://getbootstrap.com/docs/4.5/components/carousel/#with-controls\n // eslint-disable-next-line jsx-a11y/anchor-is-valid\n React.createElement(\"a\", {\n className: anchorClasses,\n style: {\n cursor: \"pointer\"\n },\n role: \"button\",\n tabIndex: \"0\",\n onClick: function onClick(e) {\n e.preventDefault();\n onClickHandler();\n }\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: iconClasses,\n \"aria-hidden\": \"true\"\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: screenReaderClasses\n }, directionText || direction))\n );\n};\n\nCarouselControl.propTypes = {\n direction: PropTypes.oneOf(['prev', 'next']).isRequired,\n onClickHandler: PropTypes.func.isRequired,\n cssModule: PropTypes.object,\n directionText: PropTypes.string,\n className: PropTypes.string\n};\nexport default CarouselControl;"]},"metadata":{},"sourceType":"module"} |