@mjhls/mjh-framework 1.0.128 → 1.0.129

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/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
 
2
- # mjh-framework v. 1.0.128
2
+ # mjh-framework v. 1.0.129
3
+
3
4
 
4
5
 
5
6
  > Foundation Framework
package/dist/index.es.js CHANGED
@@ -24,6 +24,8 @@ import NavDropdown from 'react-bootstrap/NavDropdown';
24
24
  import Pagination from 'react-bootstrap/Pagination';
25
25
  import Carousel$1 from 'react-bootstrap/Carousel';
26
26
  import Breadcrumb from 'react-bootstrap/Breadcrumb';
27
+ import DropdownButton from 'react-bootstrap/DropdownButton';
28
+ import Dropdown$1 from 'react-bootstrap/Dropdown';
27
29
 
28
30
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
29
31
 
@@ -26560,5 +26562,64 @@ var PdfDownload = function PdfDownload(props) {
26560
26562
  );
26561
26563
  };
26562
26564
 
26563
- export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, MasterDeck$1 as MasterDeck, PublicationDeck, IssueDeck, IssueContentDeck, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, PageFilter, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD, AD300x250, AD300x250x600, AD728x90, ADFooter, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload };
26565
+ var RelatedTopicsDropdown = function RelatedTopicsDropdown(_ref) {
26566
+ var parentTaxonomy = _ref.parentTaxonomy,
26567
+ subTaxonomies = _ref.subTaxonomies,
26568
+ _ref$page = _ref.page,
26569
+ page = _ref$page === undefined ? '/' : _ref$page,
26570
+ _ref$exclude = _ref.exclude,
26571
+ exclude = _ref$exclude === undefined ? 'clinical' : _ref$exclude,
26572
+ _ref$variant = _ref.variant,
26573
+ variant = _ref$variant === undefined ? 'primary' : _ref$variant,
26574
+ _ref$className = _ref.className,
26575
+ className = _ref$className === undefined ? '' : _ref$className;
26576
+
26577
+ /*
26578
+ Props accepted - parentTaxonomy(required, object), subTaxonomy(required, array), page(optional), exclude(optional), variant(optional), className(optional)
26579
+ example:
26580
+ <RelatedTopicDropdown
26581
+ page='/clinical'
26582
+ exclude="clinical"
26583
+ className='mb-3'
26584
+ parentTaxonomy={props.parentTaxonomy}
26585
+ subTaxonomies={props.subTaxonomies}
26586
+ />
26587
+ */
26588
+ if (subTaxonomies.length === 0) {
26589
+ if (parentTaxonomy.identifier == exclude) {
26590
+ return '';
26591
+ }
26592
+ return React__default.createElement(
26593
+ 'div',
26594
+ { id: 'related_dropdown', className: className },
26595
+ React__default.createElement(
26596
+ DropdownButton,
26597
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
26598
+ React__default.createElement(
26599
+ Dropdown$1.Item,
26600
+ { href: parentTaxonomy.identifier },
26601
+ parentTaxonomy.name
26602
+ )
26603
+ )
26604
+ );
26605
+ } else {
26606
+ return React__default.createElement(
26607
+ 'div',
26608
+ { id: 'related_dropdown', className: className },
26609
+ React__default.createElement(
26610
+ DropdownButton,
26611
+ { id: 'related_button', variant: variant, title: 'Related Topics' },
26612
+ subTaxonomies.length > 0 && subTaxonomies.map(function (taxonomy, index) {
26613
+ return React__default.createElement(
26614
+ Dropdown$1.Item,
26615
+ { key: index, href: page + '/' + taxonomy.identifier },
26616
+ taxonomy.name
26617
+ );
26618
+ })
26619
+ )
26620
+ );
26621
+ }
26622
+ };
26623
+
26624
+ export { ContentCard as DeckContent, GridContent$1 as GridContent, Queue as DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, VideoSeriesListing$1 as VideoSeriesListing, MasterDeck$1 as MasterDeck, PublicationDeck, IssueDeck, IssueContentDeck, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, PageFilter, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD, AD300x250, AD300x250x600, AD728x90, ADFooter, getSerializers$1 as getSerializers, Search, Feature, Breadcrumbs, SetCookie, Hero, AlphabeticList, PdfDownload, RelatedTopicsDropdown };
26564
26625
  //# sourceMappingURL=index.es.js.map