@epec-fcfm-uchile/frontend-component-header 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Logo.js CHANGED
@@ -13,7 +13,7 @@ var Logo = function Logo(_ref) {
13
13
  href: href,
14
14
  className: "logo"
15
15
  }, attributes), /*#__PURE__*/React.createElement("img", {
16
- className: "d-block",
16
+ className: "d-block epec_brand_img",
17
17
  src: src,
18
18
  alt: alt
19
19
  }));
package/dist/Logo.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","names":["React","PropTypes","Logo","_ref","href","src","alt","attributes","_objectWithoutProperties","_excluded","createElement","_extends","className","logoDataShape","string","isRequired","propTypes"],"sources":["../src/Logo.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst Logo = ({\n href,\n src,\n alt,\n ...attributes\n}) => (\n <a href={href} className=\"logo\" {...attributes}>\n <img className=\"d-block\" src={src} alt={alt} />\n </a>\n);\n\nexport const logoDataShape = {\n href: PropTypes.string.isRequired,\n src: PropTypes.string.isRequired,\n alt: PropTypes.string.isRequired,\n};\n\nLogo.propTypes = logoDataShape;\n\nexport default Logo;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA;EAAA,IACRC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IACHC,GAAG,GAAAH,IAAA,CAAHG,GAAG;IACAC,UAAU,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAAA,oBAEbT,KAAA,CAAAU,aAAA,MAAAC,QAAA;IAAGP,IAAI,EAAEA,IAAK;IAACQ,SAAS,EAAC;EAAM,GAAKL,UAAU,gBAC5CP,KAAA,CAAAU,aAAA;IAAKE,SAAS,EAAC,SAAS;IAACP,GAAG,EAAEA,GAAI;IAACC,GAAG,EAAEA;EAAI,CAAE,CAC7C,CAAC;AAAA,CACL;AAED,OAAO,IAAMO,aAAa,GAAG;EAC3BT,IAAI,EAAEH,SAAS,CAACa,MAAM,CAACC,UAAU;EACjCV,GAAG,EAAEJ,SAAS,CAACa,MAAM,CAACC,UAAU;EAChCT,GAAG,EAAEL,SAAS,CAACa,MAAM,CAACC;AACxB,CAAC;AAEDb,IAAI,CAACc,SAAS,GAAGH,aAAa;AAE9B,eAAeX,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"Logo.js","names":["React","PropTypes","Logo","_ref","href","src","alt","attributes","_objectWithoutProperties","_excluded","createElement","_extends","className","logoDataShape","string","isRequired","propTypes"],"sources":["../src/Logo.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst Logo = ({\n href,\n src,\n alt,\n ...attributes\n}) => (\n <a href={href} className=\"logo\" {...attributes}>\n <img className=\"d-block epec_brand_img\" src={src} alt={alt} />\n </a>\n);\n\nexport const logoDataShape = {\n href: PropTypes.string.isRequired,\n src: PropTypes.string.isRequired,\n alt: PropTypes.string.isRequired,\n};\n\nLogo.propTypes = logoDataShape;\n\nexport default Logo;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA;EAAA,IACRC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IACHC,GAAG,GAAAH,IAAA,CAAHG,GAAG;IACAC,UAAU,GAAAC,wBAAA,CAAAL,IAAA,EAAAM,SAAA;EAAA,oBAEbT,KAAA,CAAAU,aAAA,MAAAC,QAAA;IAAGP,IAAI,EAAEA,IAAK;IAACQ,SAAS,EAAC;EAAM,GAAKL,UAAU,gBAC5CP,KAAA,CAAAU,aAAA;IAAKE,SAAS,EAAC,wBAAwB;IAACP,GAAG,EAAEA,GAAI;IAACC,GAAG,EAAEA;EAAI,CAAE,CAC5D,CAAC;AAAA,CACL;AAED,OAAO,IAAMO,aAAa,GAAG;EAC3BT,IAAI,EAAEH,SAAS,CAACa,MAAM,CAACC,UAAU;EACjCV,GAAG,EAAEJ,SAAS,CAACa,MAAM,CAACC,UAAU;EAChCT,GAAG,EAAEL,SAAS,CAACa,MAAM,CAACC;AACxB,CAAC;AAEDb,IAAI,CAACc,SAAS,GAAGH,aAAa;AAE9B,eAAeX,IAAI","ignoreList":[]}
Binary file
@@ -7,16 +7,19 @@ import { Dropdown } from '@openedx/paragon';
7
7
  import LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';
8
8
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
9
9
  import messages from './messages';
10
+ import { icon } from '@fortawesome/fontawesome-svg-core';
10
11
  var AuthenticatedUserDropdown = function AuthenticatedUserDropdown(_ref) {
11
12
  var username = _ref.username,
12
13
  email = _ref.email;
13
14
  var intl = useIntl();
14
15
  var dropdownItems = [{
15
16
  message: intl.formatMessage(messages.profile),
16
- href: 'https://app.fcfmonline.cl/profile'
17
+ href: 'https://app.fcfmonline.cl/profile',
18
+ icon: 'faIdCardClip'
17
19
  }, {
18
20
  message: intl.formatMessage(messages.signOut),
19
- href: getConfig().LOGOUT_URL
21
+ href: getConfig().LOGOUT_URL,
22
+ icon: 'faArrowRightFromBracket'
20
23
  }];
21
24
  return /*#__PURE__*/React.createElement(Dropdown, {
22
25
  className: "user-dropdown ml-3"
@@ -25,12 +28,14 @@ var AuthenticatedUserDropdown = function AuthenticatedUserDropdown(_ref) {
25
28
  "aria-label": intl.formatMessage(messages.userOptionsDropdownLabel)
26
29
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
27
30
  icon: faUserCircle,
28
- className: "d-md-none",
29
31
  size: "lg"
30
- }), /*#__PURE__*/React.createElement("span", {
31
- "data-hj-suppress": true,
32
- className: "d-none d-md-inline"
33
- }, username), /*#__PURE__*/React.createElement("span", null, email)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
32
+ }), /*#__PURE__*/React.createElement("div", {
33
+ className: "d-none d-md-flex flex-column text-left align-center justify-center my-0 text-none"
34
+ }, /*#__PURE__*/React.createElement("div", {
35
+ "class": "epec_toolbar_name"
36
+ }, username), /*#__PURE__*/React.createElement("div", {
37
+ "class": "text-grey-darken-1 text-caption epec_toolbar_email"
38
+ }, email))), /*#__PURE__*/React.createElement(Dropdown.Menu, {
34
39
  className: "dropdown-menu-right"
35
40
  }, /*#__PURE__*/React.createElement(LearningUserMenuSlot, {
36
41
  items: dropdownItems
@@ -1 +1 @@
1
- {"version":3,"file":"AuthenticatedUserDropdown.js","names":["React","PropTypes","faUserCircle","getConfig","useIntl","Dropdown","LearningUserMenuSlot","FontAwesomeIcon","messages","AuthenticatedUserDropdown","_ref","username","email","intl","dropdownItems","message","formatMessage","profile","href","signOut","LOGOUT_URL","createElement","className","Toggle","variant","userOptionsDropdownLabel","icon","size","Menu","items","propTypes","string","isRequired"],"sources":["../../src/learning-header/AuthenticatedUserDropdown.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { faUserCircle } from '@fortawesome/free-solid-svg-icons';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Dropdown } from '@openedx/paragon';\n\nimport LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport messages from './messages';\n\nconst AuthenticatedUserDropdown = ({ username, email }) => {\n const intl = useIntl();\n const dropdownItems = [\n {\n message: intl.formatMessage(messages.profile),\n href: 'https://app.fcfmonline.cl/profile',\n },\n {\n message: intl.formatMessage(messages.signOut),\n href: getConfig().LOGOUT_URL,\n },\n ];\n\n return (\n <Dropdown className=\"user-dropdown ml-3\">\n <Dropdown.Toggle variant=\"outline-primary\" aria-label={intl.formatMessage(messages.userOptionsDropdownLabel)}>\n <FontAwesomeIcon icon={faUserCircle} className=\"d-md-none\" size=\"lg\" />\n <span data-hj-suppress className=\"d-none d-md-inline\">\n {username}\n </span>\n <span>\n {email}\n </span>\n </Dropdown.Toggle>\n <Dropdown.Menu className=\"dropdown-menu-right\">\n <LearningUserMenuSlot items={dropdownItems} />\n </Dropdown.Menu>\n </Dropdown>\n );\n};\n\nAuthenticatedUserDropdown.propTypes = {\n username: PropTypes.string.isRequired,\n};\n\nexport default AuthenticatedUserDropdown;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,YAAY,QAAQ,mCAAmC;AAChE,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,OAAOC,oBAAoB,MAAM,sCAAsC;AACvE,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,QAAQ,MAAM,YAAY;AAEjC,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAAC,IAAA,EAA4B;EAAA,IAAtBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;EAClD,IAAMC,IAAI,GAAGT,OAAO,CAAC,CAAC;EACtB,IAAMU,aAAa,GAAG,CACpB;IACEC,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACR,QAAQ,CAACS,OAAO,CAAC;IAC7CC,IAAI,EAAE;EACR,CAAC,EACD;IACEH,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACR,QAAQ,CAACW,OAAO,CAAC;IAC7CD,IAAI,EAAEf,SAAS,CAAC,CAAC,CAACiB;EACpB,CAAC,CACF;EAED,oBACEpB,KAAA,CAAAqB,aAAA,CAAChB,QAAQ;IAACiB,SAAS,EAAC;EAAoB,gBACtCtB,KAAA,CAAAqB,aAAA,CAAChB,QAAQ,CAACkB,MAAM;IAACC,OAAO,EAAC,iBAAiB;IAAC,cAAYX,IAAI,CAACG,aAAa,CAACR,QAAQ,CAACiB,wBAAwB;EAAE,gBAC3GzB,KAAA,CAAAqB,aAAA,CAACd,eAAe;IAACmB,IAAI,EAAExB,YAAa;IAACoB,SAAS,EAAC,WAAW;IAACK,IAAI,EAAC;EAAI,CAAE,CAAC,eACrE3B,KAAA,CAAAqB,aAAA;IAAM,wBAAgB;IAACC,SAAS,EAAC;EAAoB,GAClDX,QACG,CAAC,eACPX,KAAA,CAAAqB,aAAA,eACGT,KACG,CACO,CAAC,eAClBZ,KAAA,CAAAqB,aAAA,CAAChB,QAAQ,CAACuB,IAAI;IAACN,SAAS,EAAC;EAAqB,gBAC5CtB,KAAA,CAAAqB,aAAA,CAACf,oBAAoB;IAACuB,KAAK,EAAEf;EAAc,CAAE,CAChC,CACP,CAAC;AAEf,CAAC;AAEDL,yBAAyB,CAACqB,SAAS,GAAG;EACpCnB,QAAQ,EAAEV,SAAS,CAAC8B,MAAM,CAACC;AAC7B,CAAC;AAED,eAAevB,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"AuthenticatedUserDropdown.js","names":["React","PropTypes","faUserCircle","getConfig","useIntl","Dropdown","LearningUserMenuSlot","FontAwesomeIcon","messages","icon","AuthenticatedUserDropdown","_ref","username","email","intl","dropdownItems","message","formatMessage","profile","href","signOut","LOGOUT_URL","createElement","className","Toggle","variant","userOptionsDropdownLabel","size","Menu","items","propTypes","string","isRequired"],"sources":["../../src/learning-header/AuthenticatedUserDropdown.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { faUserCircle } from '@fortawesome/free-solid-svg-icons';\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Dropdown } from '@openedx/paragon';\n\nimport LearningUserMenuSlot from '../plugin-slots/LearningUserMenuSlot';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport messages from './messages';\nimport { icon } from '@fortawesome/fontawesome-svg-core';\n\nconst AuthenticatedUserDropdown = ({ username, email }) => {\n const intl = useIntl();\n const dropdownItems = [\n {\n message: intl.formatMessage(messages.profile),\n href: 'https://app.fcfmonline.cl/profile',\n icon: 'faIdCardClip'\n },\n {\n message: intl.formatMessage(messages.signOut),\n href: getConfig().LOGOUT_URL,\n icon: 'faArrowRightFromBracket'\n },\n ];\n\n return (\n <Dropdown className=\"user-dropdown ml-3\">\n <Dropdown.Toggle variant=\"outline-primary\" aria-label={intl.formatMessage(messages.userOptionsDropdownLabel)}>\n <FontAwesomeIcon icon={faUserCircle} size=\"lg\" />\n <div className=\"d-none d-md-flex flex-column text-left align-center justify-center my-0 text-none\">\n <div class=\"epec_toolbar_name\">{username}</div>\n <div class=\"text-grey-darken-1 text-caption epec_toolbar_email\">{email}</div>\n </div>\n </Dropdown.Toggle>\n <Dropdown.Menu className=\"dropdown-menu-right\">\n <LearningUserMenuSlot items={dropdownItems} />\n </Dropdown.Menu>\n </Dropdown>\n );\n};\n\nAuthenticatedUserDropdown.propTypes = {\n username: PropTypes.string.isRequired,\n};\n\nexport default AuthenticatedUserDropdown;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,YAAY,QAAQ,mCAAmC;AAChE,SAASC,SAAS,QAAQ,wBAAwB;AAClD,SAASC,OAAO,QAAQ,6BAA6B;AACrD,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,OAAOC,oBAAoB,MAAM,sCAAsC;AACvE,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,QAAQ,MAAM,YAAY;AACjC,SAASC,IAAI,QAAQ,mCAAmC;AAExD,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAAC,IAAA,EAA4B;EAAA,IAAtBC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;EAClD,IAAMC,IAAI,GAAGV,OAAO,CAAC,CAAC;EACtB,IAAMW,aAAa,GAAG,CACpB;IACEC,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACT,QAAQ,CAACU,OAAO,CAAC;IAC7CC,IAAI,EAAE,mCAAmC;IACzCV,IAAI,EAAE;EACR,CAAC,EACD;IACEO,OAAO,EAAEF,IAAI,CAACG,aAAa,CAACT,QAAQ,CAACY,OAAO,CAAC;IAC7CD,IAAI,EAAEhB,SAAS,CAAC,CAAC,CAACkB,UAAU;IAC5BZ,IAAI,EAAE;EACR,CAAC,CACF;EAED,oBACET,KAAA,CAAAsB,aAAA,CAACjB,QAAQ;IAACkB,SAAS,EAAC;EAAoB,gBACtCvB,KAAA,CAAAsB,aAAA,CAACjB,QAAQ,CAACmB,MAAM;IAACC,OAAO,EAAC,iBAAiB;IAAC,cAAYX,IAAI,CAACG,aAAa,CAACT,QAAQ,CAACkB,wBAAwB;EAAE,gBAC3G1B,KAAA,CAAAsB,aAAA,CAACf,eAAe;IAACE,IAAI,EAAEP,YAAa;IAACyB,IAAI,EAAC;EAAI,CAAE,CAAC,eAC/C3B,KAAA,CAAAsB,aAAA;IAAKC,SAAS,EAAC;EAAmF,gBAChGvB,KAAA,CAAAsB,aAAA;IAAK,SAAM;EAAmB,GAAEV,QAAc,CAAC,eAC/CZ,KAAA,CAAAsB,aAAA;IAAK,SAAM;EAAoD,GAAET,KAAW,CACzE,CACQ,CAAC,eAClBb,KAAA,CAAAsB,aAAA,CAACjB,QAAQ,CAACuB,IAAI;IAACL,SAAS,EAAC;EAAqB,gBAC5CvB,KAAA,CAAAsB,aAAA,CAAChB,oBAAoB;IAACuB,KAAK,EAAEd;EAAc,CAAE,CAChC,CACP,CAAC;AAEf,CAAC;AAEDL,yBAAyB,CAACoB,SAAS,GAAG;EACpClB,QAAQ,EAAEX,SAAS,CAAC8B,MAAM,CAACC;AAC7B,CAAC;AAED,eAAetB,yBAAyB","ignoreList":[]}
@@ -6,7 +6,10 @@ var LearningHeaderUserMenuItems = function LearningHeaderUserMenuItems(_ref) {
6
6
  return items.map(function (item) {
7
7
  return /*#__PURE__*/React.createElement(Dropdown.Item, {
8
8
  href: item.href
9
- }, item.message);
9
+ }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
10
+ icon: item.icon,
11
+ size: "lg"
12
+ }), " ", item.message);
10
13
  });
11
14
  };
12
15
  export var learningHeaderUserMenuDataShape = {
@@ -1 +1 @@
1
- {"version":3,"file":"LearningHeaderUserMenuItems.js","names":["React","PropTypes","Dropdown","LearningHeaderUserMenuItems","_ref","items","map","item","createElement","Item","href","message","learningHeaderUserMenuDataShape","arrayOf","shape","string","propTypes"],"sources":["../../src/learning-header/LearningHeaderUserMenuItems.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Dropdown } from '@openedx/paragon';\n\nconst LearningHeaderUserMenuItems = ({ items }) => items.map((item) => (\n <Dropdown.Item href={item.href}>\n {item.message}\n </Dropdown.Item>\n));\n\nexport const learningHeaderUserMenuDataShape = {\n items: PropTypes.arrayOf(PropTypes.shape({\n message: PropTypes.string,\n href: PropTypes.string,\n })),\n};\n\nLearningHeaderUserMenuItems.propTypes = learningHeaderUserMenuDataShape;\n\nexport default LearningHeaderUserMenuItems;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAAC,IAAA;EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAOA,KAAK,CAACC,GAAG,CAAC,UAACC,IAAI;IAAA,oBAChEP,KAAA,CAAAQ,aAAA,CAACN,QAAQ,CAACO,IAAI;MAACC,IAAI,EAAEH,IAAI,CAACG;IAAK,GAC5BH,IAAI,CAACI,OACO,CAAC;EAAA,CACjB,CAAC;AAAA;AAEF,OAAO,IAAMC,+BAA+B,GAAG;EAC7CP,KAAK,EAAEJ,SAAS,CAACY,OAAO,CAACZ,SAAS,CAACa,KAAK,CAAC;IACvCH,OAAO,EAAEV,SAAS,CAACc,MAAM;IACzBL,IAAI,EAAET,SAAS,CAACc;EAClB,CAAC,CAAC;AACJ,CAAC;AAEDZ,2BAA2B,CAACa,SAAS,GAAGJ,+BAA+B;AAEvE,eAAeT,2BAA2B","ignoreList":[]}
1
+ {"version":3,"file":"LearningHeaderUserMenuItems.js","names":["React","PropTypes","Dropdown","LearningHeaderUserMenuItems","_ref","items","map","item","createElement","Item","href","FontAwesomeIcon","icon","size","message","learningHeaderUserMenuDataShape","arrayOf","shape","string","propTypes"],"sources":["../../src/learning-header/LearningHeaderUserMenuItems.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { Dropdown } from '@openedx/paragon';\n\nconst LearningHeaderUserMenuItems = ({ items }) => items.map((item) => (\n <Dropdown.Item href={item.href}>\n <FontAwesomeIcon icon={item.icon} size=\"lg\" /> {item.message}\n </Dropdown.Item>\n));\n\nexport const learningHeaderUserMenuDataShape = {\n items: PropTypes.arrayOf(PropTypes.shape({\n message: PropTypes.string,\n href: PropTypes.string,\n })),\n};\n\nLearningHeaderUserMenuItems.propTypes = learningHeaderUserMenuDataShape;\n\nexport default LearningHeaderUserMenuItems;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,SAASC,QAAQ,QAAQ,kBAAkB;AAE3C,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAAC,IAAA;EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAOA,KAAK,CAACC,GAAG,CAAC,UAACC,IAAI;IAAA,oBAChEP,KAAA,CAAAQ,aAAA,CAACN,QAAQ,CAACO,IAAI;MAACC,IAAI,EAAEH,IAAI,CAACG;IAAK,gBAC7BV,KAAA,CAAAQ,aAAA,CAACG,eAAe;MAACC,IAAI,EAAEL,IAAI,CAACK,IAAK;MAACC,IAAI,EAAC;IAAI,CAAE,CAAC,KAAC,EAACN,IAAI,CAACO,OACxC,CAAC;EAAA,CACjB,CAAC;AAAA;AAEF,OAAO,IAAMC,+BAA+B,GAAG;EAC7CV,KAAK,EAAEJ,SAAS,CAACe,OAAO,CAACf,SAAS,CAACgB,KAAK,CAAC;IACvCH,OAAO,EAAEb,SAAS,CAACiB,MAAM;IACzBR,IAAI,EAAET,SAAS,CAACiB;EAClB,CAAC,CAAC;AACJ,CAAC;AAEDf,2BAA2B,CAACgB,SAAS,GAAGJ,+BAA+B;AAEvE,eAAeZ,2BAA2B","ignoreList":[]}
@@ -6,7 +6,6 @@ var LearningUserMenuToggle = function LearningUserMenuToggle(_ref) {
6
6
  icon = _ref.icon;
7
7
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
8
8
  icon: icon,
9
- className: "d-md-none",
10
9
  size: "lg"
11
10
  }), /*#__PURE__*/React.createElement("span", {
12
11
  "data-hj-suppress": true,
@@ -1 +1 @@
1
- {"version":3,"file":"LearningUserMenuToggle.js","names":["React","FontAwesomeIcon","PropTypes","LearningUserMenuToggle","_ref","label","icon","createElement","Fragment","className","size","LearningUserMenuTogglePropTypes","string","isRequired","shape","prefix","iconName","propTypes"],"sources":["../../src/learning-header/LearningUserMenuToggle.jsx"],"sourcesContent":["import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport PropTypes from 'prop-types';\n\nconst LearningUserMenuToggle = ({\n label,\n icon,\n}) => (\n <>\n <FontAwesomeIcon icon={icon} className=\"d-md-none\" size=\"lg\" />\n <span data-hj-suppress className=\"d-none d-md-inline\">\n {label}\n </span>\n \n </>\n);\n\nexport const LearningUserMenuTogglePropTypes = {\n label: PropTypes.string.isRequired,\n // Full shape available by examining @fortawesome/fontawesome-common-types/index.d.ts.\n icon: PropTypes.shape({\n prefix: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nLearningUserMenuToggle.propTypes = LearningUserMenuTogglePropTypes;\n\nexport default LearningUserMenuToggle;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA;EAAA,IAC1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EAAA,oBAEJN,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,qBACER,KAAA,CAAAO,aAAA,CAACN,eAAe;IAACK,IAAI,EAAEA,IAAK;IAACG,SAAS,EAAC,WAAW;IAACC,IAAI,EAAC;EAAI,CAAE,CAAC,eAC/DV,KAAA,CAAAO,aAAA;IAAM,wBAAgB;IAACE,SAAS,EAAC;EAAoB,GAClDJ,KACG,CAEN,CAAC;AAAA,CACJ;AAED,OAAO,IAAMM,+BAA+B,GAAG;EAC7CN,KAAK,EAAEH,SAAS,CAACU,MAAM,CAACC,UAAU;EAClC;EACAP,IAAI,EAAEJ,SAAS,CAACY,KAAK,CAAC;IACpBC,MAAM,EAAEb,SAAS,CAACU,MAAM,CAACC,UAAU;IACnCG,QAAQ,EAAEd,SAAS,CAACU,MAAM,CAACC;EAC7B,CAAC,CAAC,CAACA;AACL,CAAC;AAEDV,sBAAsB,CAACc,SAAS,GAAGN,+BAA+B;AAElE,eAAeR,sBAAsB","ignoreList":[]}
1
+ {"version":3,"file":"LearningUserMenuToggle.js","names":["React","FontAwesomeIcon","PropTypes","LearningUserMenuToggle","_ref","label","icon","createElement","Fragment","size","className","LearningUserMenuTogglePropTypes","string","isRequired","shape","prefix","iconName","propTypes"],"sources":["../../src/learning-header/LearningUserMenuToggle.jsx"],"sourcesContent":["import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport PropTypes from 'prop-types';\n\nconst LearningUserMenuToggle = ({\n label,\n icon,\n}) => (\n <>\n <FontAwesomeIcon icon={icon} size=\"lg\" />\n <span data-hj-suppress className=\"d-none d-md-inline\">\n {label}\n </span>\n \n </>\n);\n\nexport const LearningUserMenuTogglePropTypes = {\n label: PropTypes.string.isRequired,\n // Full shape available by examining @fortawesome/fontawesome-common-types/index.d.ts.\n icon: PropTypes.shape({\n prefix: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n }).isRequired,\n};\n\nLearningUserMenuToggle.propTypes = LearningUserMenuTogglePropTypes;\n\nexport default LearningUserMenuToggle;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,eAAe,QAAQ,gCAAgC;AAChE,OAAOC,SAAS,MAAM,YAAY;AAElC,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAAC,IAAA;EAAA,IAC1BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,IAAI,GAAAF,IAAA,CAAJE,IAAI;EAAA,oBAEJN,KAAA,CAAAO,aAAA,CAAAP,KAAA,CAAAQ,QAAA,qBACER,KAAA,CAAAO,aAAA,CAACN,eAAe;IAACK,IAAI,EAAEA,IAAK;IAACG,IAAI,EAAC;EAAI,CAAE,CAAC,eACzCT,KAAA,CAAAO,aAAA;IAAM,wBAAgB;IAACG,SAAS,EAAC;EAAoB,GAClDL,KACG,CAEN,CAAC;AAAA,CACJ;AAED,OAAO,IAAMM,+BAA+B,GAAG;EAC7CN,KAAK,EAAEH,SAAS,CAACU,MAAM,CAACC,UAAU;EAClC;EACAP,IAAI,EAAEJ,SAAS,CAACY,KAAK,CAAC;IACpBC,MAAM,EAAEb,SAAS,CAACU,MAAM,CAACC,UAAU;IACnCG,QAAQ,EAAEd,SAAS,CAACU,MAAM,CAACC;EAC7B,CAAC,CAAC,CAACA;AACL,CAAC;AAEDV,sBAAsB,CAACc,SAAS,GAAGN,+BAA+B;AAElE,eAAeR,sBAAsB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epec-fcfm-uchile/frontend-component-header",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "The standard header for Open edX",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {